package data.visu.utils;

/**
 * @author Charles Perin
 * 29 mars 2011
 * LIMSI - INRIA Rennes
 * charles.perin@free.fr
 *
 */
public class Numbers {
	
	
	public static double roundDouble(double number, int nbAfterPoint) {
		double multiple = Math.pow(10, -nbAfterPoint);
	     return Math.round( number * (1.0/multiple) ) / (1.0/multiple);
	}

}
